<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>flex布局</title>
    <style>
        .box{
            width: 400px;
            height: 400px;
            border: 1px solid #333;
            

            display: flex;
            flex-direction: row;
            /* flex-wrap: wrap; */
            /* justify-content: flex-end;
            align-content: space-between; */

        }
        .item:nth-child(1){
            /* align-self 是指单独设置的align-items 可继承可 */
            flex-basis: 200px;
            width: 300px;
            height: 100px;
            background-color: red;
        }
        .item:nth-child(2){
            /* align-self 是指单独设置的align-items 可继承可 */
            /* align-self: end; */
            width: 100px;
            height: 100px;
            background-color: orange;
        }
        .item:nth-child(3){
            /* align-self 是指单独设置的align-items 可继承可 */
            width: 100px;
            height: 100px;
            background-color:yellow;
            
        }
        .item:nth-child(4){
            /* align-self 是指单独设置的align-items 可继承可 */
            width: 100px;
            height: 100px;
            background-color: green;

        }
        .item:nth-child(5){
            /* align-self 是指单独设置的align-items 可继承可 */
            width: 100px;
            height: 100px;
            background-color: pink;

        }
    </style>
</head>
<body>
    <div class="box">
        <div class="item"></div>
        <div class="item"></div>
        <div class="item"></div>
        <div class="item"></div> 
        <div class="item"></div> 
    </div>
</body>
</html>